package org.dxy.domain.service;

import lombok.RequiredArgsConstructor;
import org.dxy.domain.adapter.repository.IWorkOrderRepository;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class ProductService extends AbstractProductService{

    private final IWorkOrderRepository workOrderRepository;
//    private final IRouteRepository routeRepository;
//    private final IWorkstationRepository workstationRepository;
    @Override
    protected void enterStation(Long workOrderId, Long stationId) {
//        var workOrder = workOrderRepository.load(workOrderId);
//        RouteAggregate route = routeRepository.load(workOrder.getRouteId());
//        WorkstationAggregate station = workstationRepository.load(stationId);
//
//
//        workOrder.enterStation(stationId, route);
//        workOrderRepository.doSave(workOrder);
    }

    @Override
    protected void leaveStation(Long workOrderId, Long stationId) {

    }
}
